gradient: Add a private header file
authorBenjamin Otte <otte@redhat.com>
Tue, 2 Oct 2012 10:15:22 +0000 (12:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 2 Oct 2012 12:16:36 +0000 (14:16 +0200)
gtk/Makefile.am
gtk/gtkcssimagegradient.c
gtk/gtkcssstylefuncs.c
gtk/gtkgradient.c
gtk/gtkgradientprivate.h [new file with mode: 0644]
gtk/gtkstylecontext.c
gtk/gtkstylepropertiesprivate.h

index 2f21bbf2307a60e6a0b66875ccfc64e50a431e9b..7e9ebffea3b94af68394cf589de8064ef5de4cc7 100644 (file)
@@ -477,6 +477,7 @@ gtk_private_h_sources =             \
        gtkfilesystemmodel.h    \
        gtkfontchooserprivate.h \
        gtkfontchooserutils.h   \
+       gtkgradientprivate.h    \
        gtkiconcache.h          \
        gtkiconhelperprivate.h  \
        gtkiconviewprivate.h    \
index 2e710672cc274dc243bcf1bbd7576482a73de2e5..30bfab35e9386c7c33eae1722c06a01282f885a9 100644 (file)
@@ -22,8 +22,8 @@
 #include "gtkcssimagegradientprivate.h"
 
 #include "gtkcssprovider.h"
+#include "gtkgradientprivate.h"
 #include "gtksymboliccolorprivate.h"
-#include "gtkstylepropertiesprivate.h"
 
 G_DEFINE_TYPE (GtkCssImageGradient, _gtk_css_image_gradient, GTK_TYPE_CSS_IMAGE)
 
index 182837a16c6429d14d370a528c826e10e31361ec..283420a2f74565b74d416c23faf8f52579c0b4bb 100644 (file)
@@ -33,9 +33,9 @@
 #include "gtkcsstypedvalueprivate.h"
 #include "gtkcsstypesprivate.h"
 #include "gtkgradient.h"
+#include "gtkgradientprivate.h"
 #include "gtkprivatetypebuiltins.h"
 #include "gtkstylecontextprivate.h"
-#include "gtkstylepropertiesprivate.h"
 #include "gtksymboliccolorprivate.h"
 #include "gtkthemingengine.h"
 #include "gtktypebuiltins.h"
index 1586757c9b59f7cef44c3598f2e5c2da1d568c3f..ee5706611698fcf85e84e03bd8ff48e41e2acd66 100644 (file)
  */
 
 #include "config.h"
-#include "gtkgradient.h"
+
+#include "gtkgradientprivate.h"
+
 #include "gtkcssrgbavalueprivate.h"
 #include "gtkstylecontextprivate.h"
 #include "gtkstyleproperties.h"
-#include "gtkstylepropertiesprivate.h"
+#include "gtksymboliccolorprivate.h"
 
 /**
  * SECTION:gtkgradient
diff --git a/gtk/gtkgradientprivate.h b/gtk/gtkgradientprivate.h
new file mode 100644 (file)
index 0000000..1ad2eef
--- /dev/null
@@ -0,0 +1,34 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2012 Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_GRADIENT_PRIVATE_H__
+#define __GTK_GRADIENT_PRIVATE_H__
+
+#include "gtkgradient.h"
+#include "gtkcsstypesprivate.h"
+
+G_BEGIN_DECLS
+
+cairo_pattern_t *       _gtk_gradient_resolve_full            (GtkGradient             *gradient,
+                                                               GtkStyleProviderPrivate *provider,
+                                                               GtkCssComputedValues    *values,
+                                                               GtkCssComputedValues    *parent_values,
+                                                               GtkCssDependencies      *dependencies);
+
+G_END_DECLS
+
+#endif /* __GTK_STYLE_PROPERTIES_PRIVATE_H__ */
index 67cba7e775a259c98a935b9181aecab2fbf3244c..a6b7369b342fe72da34cc2be89f9bc82bc0fd33e 100644 (file)
@@ -28,6 +28,7 @@
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkcssrgbavalueprivate.h"
 #include "gtkdebug.h"
+#include "gtkgradientprivate.h"
 #include "gtkstylepropertiesprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkthemingengineprivate.h"
index 2e1bd97af797f5040b1caf4421b892413809b2f2..c5b742e7917602e960c86c26fb648ccdf42dd707 100644 (file)
@@ -33,13 +33,6 @@ void           _gtk_style_properties_set_property_by_property (GtkStylePropertie
                                                                GtkStateFlags            state,
                                                                GtkCssValue             *value);
 
-cairo_pattern_t *
-               _gtk_gradient_resolve_full                     (GtkGradient             *gradient,
-                                                               GtkStyleProviderPrivate *provider,
-                                                               GtkCssComputedValues    *values,
-                                                               GtkCssComputedValues    *parent_values,
-                                                               GtkCssDependencies      *dependencies);
-
 G_END_DECLS
 
 #endif /* __GTK_STYLE_PROPERTIES_PRIVATE_H__ */